<?php

class AvatarWidget extends CWidget {

	public $data;
	public $id;
	public $status = 0;
    public function init() {
			$this->renderContent();  
    }
    protected function renderContent() {
    	$this->data = Users::model()->findByPk($this->id);
    	$this->render('avatar',array());   
    }

}

?>
